/**
 * Dans.com Inc.
 * Copyright (c) 2011-2020 All Rights Reserved
 */
package com.example.mqreceiver;


import enums.EventTypeEnum;
import event.BusinessEvent;

/**
 * 追踪事件处理器
 * @author ke
 * Created by on 2020-10-24 14:02
 */
public interface MqEventProcessor {

    /**
     * 判断当前事件是否满足条件
     * @param event
     * @return
     */
    boolean condition(BusinessEvent event);

    /**
     * 事件动作
     * @param event
     */
    void action(BusinessEvent event);

    /**
     * 获取事件类型
     * @return
     */
    EventTypeEnum getEventType();
}
